package com.wontube.smr.conf.dogs;

import com.wontube.core.conf.dogs.FileWatchDog;
import com.wontube.smr.bo.sites.youtube.YouTubeFactory;



/**
 * @author yuechao
 *
 */
public final class YouTubeWatchDog extends FileWatchDog {
	/**
	 * @param filename
	 */
	public YouTubeWatchDog(String confPath) {
		super(confPath);
	}

	/* (non-Javadoc)
	 * @see core.pub.FileWatchdog#doOnChange()
	 */
	@Override
	protected void doOnChange() {
		YouTubeFactory.loadService(super.file);
	}

	@Override
	protected String getFilename() {
		return "youtube.josn";
	}
}
